<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>角色权限设置</title>
    <link rel="stylesheet" href="__ACSS__/table.css">
</head>
<body>
    <div class="table-wrap">
        <div class="table-main">
            <div class="ibox-title">
                <h3>角色权限设置</small></h3>
            </div>
            <div class="ibox-content">  
                <form action="{:url('admin/admin_role/doRoleNode', ['roleId' => $id ])}" class="form-main" method="post">
                    <div class="form-group">
                        <ul>
                            <li>
                                <span class="form-title">角色ID</span>
                                <span class="form-username">{$id}</span>
                            </li>
                            <li>
                                {volist name="res" id="v"}
                                {if $v.pid == 0 }
                                <br>
                                <span class="form-title2">
                                    {if in_array($v.id, $nodeId) }
                                    <label class="form-checkbox">
                                        <input type="checkbox" value="{$v.id}" name="nodeId[]" checked>{$v.title}
                                    : </label>
                                    {else /}
                                    <label class="form-checkbox">
                                        <input type="checkbox" value="{$v.id}" name="nodeId[]">{$v.title}
                                    : </label>
                                    {/if}
                                </span>
                                {else /}
                                    {if in_array($v.id, $nodeId) }
                                        <label class="form-checkbox">
                                            <input type="checkbox" value="{$v.id}" name="nodeId[]" checked>{$v.title}
                                        </label>
                                        {else /}
                                        <label class="form-checkbox">
                                            <input type="checkbox" value="{$v.id}" name="nodeId[]">{$v.title}
                                        </label>
                                    {/if}
                                {/if}
                                {/volist}
                            </li>
                            <li>
                                <span class="form-title"></span>
                                <input class="form-submit-btn" type="submit" value="提交">
                                <a href="{:url('admin/admin_role/index')}" class="form-back-btn"  name="">返回</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
        </div>
    </div>

</body>
</html>